package com.redare.dev.smart.generator.sdk.pojo.form;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

;

/**
 * 业务系统
 *
 * @date 2021-08-27 15:19:22
 * Created by yangqiangyu
 */
public class GeneratorSysForm {

    public static class Add {
        /**
         * 系统编码
         */
        @NotBlank(message = "系统编码不能为空")
        private String code;
        /**
         * 系统名称
         */
        @NotBlank(message = "系统名称不能为空")
        private String name;

        public String getCode() {
            return code;
        }

        public Add setCode(String code) {
            this.code = code;
            return this;
        }


        public String getName() {
            return name;
        }

        public Add setName(String name) {
            this.name = name;
            return this;
        }


    }

    public static class Edit {

        @NotNull(message = "请传入id")
        private Long id;

        /**
         * 系统编码
         */
        private String code;
        /**
         * 系统名称
         */
        private String name;

        public Long getId() {
            return id;
        }

        public Edit setId(Long id) {
            this.id = id;
            return this;
        }


        public String getCode() {
            return code;
        }

        public Edit setCode(String code) {
            this.code = code;
            return this;
        }

        public String getName() {
            return name;
        }

        public Edit setName(String name) {
            this.name = name;
            return this;
        }

    }

    public static class Search {

        private String queryFields;

        private String key;


        public String getKey() {
            return key;
        }

        public Search setKey(String key) {
            this.key = key;
            return this;
        }

        public String getQueryFields() {
            return queryFields;
        }

        public Search setQueryFields(String queryFields) {
            this.queryFields = queryFields;
            return this;
        }


    }


    public static class Get {
        @NotNull(message = "请传入id")
        private Long id;

        private String queryFields;


        public Long getId() {
            return id;
        }

        public Get setId(Long id) {
            this.id = id;
            return this;
        }

        public String getQueryFields() {
            return queryFields;
        }

        public Get setQueryFields(String queryFields) {
            this.queryFields = queryFields;
            return this;
        }

    }

    public static class Del {
        @NotNull(message = "请传入id")
        private Long id;

        public Long getId() {
            return id;
        }

        public Del setId(Long id) {
            this.id = id;
            return this;
        }
    }


}